<?php
require_once("../comm/utils.php");
function add_weibo()
{
	$url = "https://graph.qq.com/wb/add_weibo";
	$data = "access_token=" . $_SESSION["access_token"] . "&oauth_consumer_key=" . $_SESSION["appid"] . "&openid=" . $_SESSION["openid"] . "&format=" . $_POST["format"] . "&type=" . $_POST["type"] . "&content=" . urlencode($_POST["content"]) . "&img=" . urlencode($_POST["img"]);
	$ret = do_post($url, $data);
	return $ret;
}

$ret = add_weibo();
echo $ret; ?>